package com.example.myapplication;

import android.content.Context;
import android.content.pm.PackageManager;

public class Tools {
  static Boolean permissionIsTrue(int granted) {
    return granted == PackageManager.PERMISSION_GRANTED;
  }

  static void log(Object obj, String s) {
    String[] names = obj.getClass().getName().split("\\.");
    String pre = names[names.length - 1];
    System.out.print(pre + ": ");
    System.out.println(s);
  }

  static void log(Object obj, int s) {
    String[] names = obj.getClass().getName().split("\\.");
    String pre = names[names.length - 1];
    System.out.print(pre + ": ");
    System.out.println(s);
  }
}
